<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>jQuery Mobile Button Test Suite</title>

	<script src="../../../external/requirejs/require.js"></script>
	<script src="../../../js/requirejs.config.js"></script>
	<script src="../../../js/jquery.tag.inserter.js"></script>
	<script src="../../jquery.setNameSpace.js"></script>
	<script src="../../../tests/jquery.testHelper.js"></script>


	<link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
	<link rel="stylesheet" href="../../../external/qunit.css"/>
	<script src="../../../external/qunit.js"></script>
	<script>
		$.testHelper.asyncLoad([
			[ "widgets/page" ],
			[
				"widgets/forms/button",
				"jquery.mobile.buttonMarkup"
			],
			[ "jquery.mobile.init" ],
			[
				"button_core.js"
			]
		]);
	</script>

	<script src="../../swarminject.js"></script>
	<style>
		.ui-page-theme-p .ui-btn,
		html .ui-bar-p .ui-btn,
		html .ui-body-p .ui-btn,
		html body .ui-btn.ui-btn-p,
		html body .ui-group-theme-p .ui-btn,
		[class*="ui-group-theme-"] .ui-btn.ui-btn-p,
		/* Button visited */
		.ui-page-theme-p .ui-btn:visited,
		html .ui-bar-p .ui-btn:visited,
		html .ui-body-p .ui-btn:visited,
		html body .ui-btn.ui-btn-p:visited,
		html body .ui-group-theme-p .ui-btn:visited,
		[class*="ui-group-theme-"] .ui-btn.ui-btn-p:visited {
			background: 			#000 /*{p-bup-background-color}*/;
		}
	</style>
</head>
<body>
  <h1 id="qunit-header">jQuery Mobile Button Test Suite</h1>
  <h2 id="qunit-banner"></h2>
  <h2 id="qunit-userAgent"></h2>
  <ol id="qunit-tests">
  </ol>

  <div data-nstest-role="page" data-nstest-theme="a">
    <div data-nstest-role="content" data-nstest-theme="b">
      <button class="should-be-native">foo</button>
      <button id="enhanced">bar</button>
      <button id="text">foo</button>
      <button id="value" value="foo"></button>
      <form id="hidden-element-addition-form" method="get" action="this will fail!">
        <input type="submit" id="hidden-element-addition" name="foo" value="foo">foo</input>
      </form>
      <button id="theme-check" value="foo"></button>
      <button id="theme-check-explicit" value="foo" data-nstest-theme="a"></button>
      <button id="contains-html">Supports <sup>phrasing content</sup></button>
      <input type="button" id="val-contains-html" value="<fake markup>"/>
    </div>
  </div>
</body>
</html>
